import {Map} from 'immutable';

import * as actionTypes from './constant';

const defaultState = Map({
    repairInfo:[]
})

function reducer(state = defaultState, action){
    switch(action.type) {
        case actionTypes.CHANGE_REPAIR_INFO:
            return state.set('repairInfo',action.repairInfo);
        case actionTypes.UPDATE_REPAIR_INFO:
            return state;
        default: 
            return state;
    }
}

export default reducer;